package com.bear.fastrepair.http.api.employee

import com.bear.fastrepair.entity.BillInfoAdd
import com.bear.fastrepair.entity.BillInfoResponse
import com.bear.fastrepair.entity.ResponseInfo
import retrofit2.http.*

interface BillService {
    /**
     * 新增订单账单
     * @param billInfoAdd BillInfoAdd
     * @return ResponseInfo
     */
    @POST("mobile/orderBill")
    suspend fun addOrderBill(@Body billInfoAdd: BillInfoAdd): ResponseInfo

    /**
     * 通过服务订单id获取账单
     * @param id String
     * @return BillInfoResponse
     */
    @GET("mobile/orderBill/serviceOrderId/{id}")
    suspend fun getBillInfoById(@Path("id") id: String): BillInfoResponse

    /**
     * 通过服务订单ID删除订单
     * @param id String
     * @return ResponseInfo
     */
    @DELETE("mobile/orderBill/{id}")
    suspend fun deleteBillById(@Path("id") id: String): ResponseInfo
}